package cn.com.open.opensaas.scoreservice.controller;


import cn.com.open.opensaas.baiscommon.common.ReturnModel;
import cn.com.open.opensaas.scoreservice.service.QuestionJudgeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
 * 试题判分接口
 */
@RestController
@RequestMapping("/question")
public class QuestionJudgeController {
    private static final Logger logger = LoggerFactory.getLogger(QuestionJudgeController.class);

    @Autowired
    private QuestionJudgeService questionJudgeService;


    @RequestMapping(value = "/judge",method = RequestMethod.POST)
    public ReturnModel questionJudge(@RequestParam(value = "uniqueId") Long uniqueId ){
        return questionJudgeService.judge(uniqueId);
    }


}